//导入工具类
import request from "@/utils/request";


//查询所有行业类型
export const addCompanyPost = (data) =>{
    return request.post(`/companypost/`,data);
}

//查询所有行业类型
export const getAllPost = (pageNum,pageSize,keyword) =>{
    return request.get(`/companypost/page?pageNum=${pageNum}&pageSize=${pageSize}&keyWord=${keyword}`);
}

//根据id查询企业
export const getCompanyById = (companyId) =>{
    return request.get(`/company/${companyId}`);
}

//查询总页数
export const getAllPage = (keyword) =>{
    return request.get(`/companypost/count?keyWord=${keyword}`);
}

//删除企业地址
export const deleAddress = (id) =>{
    let address = {
        address:id,
    }
    return request.get("/address/delAddress",address);
}
//查询企业
export const selectCompanys = (keyword) =>{
    return request.get(`/company/count?keyWord=${keyword}`);
}
//删除企业职位
export const delCompanyPost = (postId) =>{
    return request.get(`/companypost/postId/${postId}`);
}